import type {
  typeListResData,
  pageQueryData,
  pageQueryTypeData,
  goodsSpuData,
} from '@/types/category'

import type { ResultParams } from '@/types/global'

import { http } from '@/utils/http'

export default {
  searchListForShop: (pageQueryData: pageQueryData) => {
    //获取装修楼层数据
    return http<ResultParams<goodsSpuData>>({
      method: 'GET',
      url: '/v1/shop/goods/noAuth/searchListForShop',
      data: {
        company_id_: 1,
        ...pageQueryData,
      },
    })
  },
  listTypeByCompany: (pageQueryData: pageQueryTypeData) => {
    //获取分类 typeList 数据
    return http<typeListResData>({
      method: 'GET',
      url: '/v1/shop/goods/noAuth/getTypeTree',
      data: pageQueryData,
    })
  },
}
